Optimal. Leaf size=177 \[ \frac {a^2 d e \left (a+b x^2\right )^{1+p}}{b^3 (1+p)}+\frac {e^2 x^5 \left (a+b x^2\right )^{1+p}}{b (7+2 p)}-\frac {2 a d e \left (a+b x^2\right )^{2+p}}{b^3 (2+p)}+\frac {d e \left (a+b x^2\right )^{3+p}}{b^3 (3+p)}-\frac {\left (5 a e^2-b d^2 (7+2 p)\right ) x^5 \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )}{5 b (7+2 p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 169, normalized size of antiderivative = 0.95, number of steps
used = 8, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {1666, 470, 372,
371, 12, 272, 45} \begin {gather*} \frac {a^2 d e \left (a+b x^2\right )^{p+1}}{b^3 (p+1)}-\frac {2 a d e \left (a+b x^2\right )^{p+2}}{b^3 (p+2)}+\frac {d e \left (a+b x^2\right )^{p+3}}{b^3 (p+3)}+\frac {1}{5} x^5 \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (d^2-\frac {5 a e^2}{2 b p+7 b}\right ) \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )+\frac {e^2 x^5 \left (a+b x^2\right )^{p+1}}{b (2 p+7)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 272
Rule 371
Rule 372
Rule 470
Rule 1666
Rubi steps
\begin {align*} \int x^4 (d+e x)^2 \left (a+b x^2\right )^p \, dx &=\int 2 d e x^5 \left (a+b x^2\right )^p \, dx+\int x^4 \left (a+b x^2\right )^p \left (d^2+e^2 x^2\right ) \, dx\\ &=\frac {e^2 x^5 \left (a+b x^2\right )^{1+p}}{b (7+2 p)}+(2 d e) \int x^5 \left (a+b x^2\right )^p \, dx-\left (-d^2+\frac {5 a e^2}{7 b+2 b p}\right ) \int x^4 \left (a+b x^2\right )^p \, dx\\ &=\frac {e^2 x^5 \left (a+b x^2\right )^{1+p}}{b (7+2 p)}+(d e) \text {Subst}\left (\int x^2 (a+b x)^p \, dx,x,x^2\right )-\left (\left (-d^2+\frac {5 a e^2}{7 b+2 b p}\right ) \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int x^4 \left (1+\frac {b x^2}{a}\right )^p \, dx\\ &=\frac {e^2 x^5 \left (a+b x^2\right )^{1+p}}{b (7+2 p)}+\frac {1}{5} \left (d^2-\frac {5 a e^2}{7 b+2 b p}\right ) x^5 \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )+(d e) \text {Subst}\left (\int \left (\frac {a^2 (a+b x)^p}{b^2}-\frac {2 a (a+b x)^{1+p}}{b^2}+\frac {(a+b x)^{2+p}}{b^2}\right ) \, dx,x,x^2\right )\\ &=\frac {a^2 d e \left (a+b x^2\right )^{1+p}}{b^3 (1+p)}+\frac {e^2 x^5 \left (a+b x^2\right )^{1+p}}{b (7+2 p)}-\frac {2 a d e \left (a+b x^2\right )^{2+p}}{b^3 (2+p)}+\frac {d e \left (a+b x^2\right )^{3+p}}{b^3 (3+p)}+\frac {1}{5} \left (d^2-\frac {5 a e^2}{7 b+2 b p}\right ) x^5 \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 156, normalized size = 0.88 \begin {gather*} \frac {1}{35} \left (a+b x^2\right )^p \left (\frac {35 d e \left (a+b x^2\right ) \left (2 a^2-2 a b (1+p) x^2+b^2 \left (2+3 p+p^2\right ) x^4\right )}{b^3 (1+p) (2+p) (3+p)}+7 d^2 x^5 \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )+5 e^2 x^7 \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};-\frac {b x^2}{a}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int x^{4} \left (e x +d \right )^{2} \left (b \,x^{2}+a \right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 925 vs.
\(2 (151) = 302\).
time = 18.00, size = 986, normalized size = 5.57 \begin {gather*} \frac {a^{p} d^{2} x^{5} {{}_{2}F_{1}\left (\begin {matrix} \frac {5}{2}, - p \\ \frac {7}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{5} + \frac {a^{p} e^{2} x^{7} {{}_{2}F_{1}\left (\begin {matrix} \frac {7}{2}, - p \\ \frac {9}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{7} + 2 d e \left (\begin {cases} \frac {a^{p} x^{6}}{6} & \text {for}\: b = 0 \\\frac {2 a^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {2 a^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {3 a^{2}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {4 a b x^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {4 a b x^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {4 a b x^{2}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {2 b^{2} x^{4} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} + \frac {2 b^{2} x^{4} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{4 a^{2} b^{3} + 8 a b^{4} x^{2} + 4 b^{5} x^{4}} & \text {for}\: p = -3 \\- \frac {2 a^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 a b^{3} + 2 b^{4} x^{2}} - \frac {2 a^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 a b^{3} + 2 b^{4} x^{2}} - \frac {2 a^{2}}{2 a b^{3} + 2 b^{4} x^{2}} - \frac {2 a b x^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 a b^{3} + 2 b^{4} x^{2}} - \frac {2 a b x^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 a b^{3} + 2 b^{4} x^{2}} + \frac {b^{2} x^{4}}{2 a b^{3} + 2 b^{4} x^{2}} & \text {for}\: p = -2 \\\frac {a^{2} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{2 b^{3}} + \frac {a^{2} \log {\left (x + \sqrt {- \frac {a}{b}} \right )}}{2 b^{3}} - \frac {a x^{2}}{2 b^{2}} + \frac {x^{4}}{4 b} & \text {for}\: p = -1 \\\frac {2 a^{3} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} - \frac {2 a^{2} b p x^{2} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} + \frac {a b^{2} p^{2} x^{4} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} + \frac {a b^{2} p x^{4} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} + \frac {b^{3} p^{2} x^{6} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} + \frac {3 b^{3} p x^{6} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} + \frac {2 b^{3} x^{6} \left (a + b x^{2}\right )^{p}}{2 b^{3} p^{3} + 12 b^{3} p^{2} + 22 b^{3} p + 12 b^{3}} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^4\,{\left (b\,x^2+a\right )}^p\,{\left (d+e\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________